<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
		<script>
			var i=100;
		    //i=parseInt(i);
			for(;i<=999;i++)
			{
				var fir=i/100;  //fir=(i-i%100)/100;
				fir=parseInt(fir);
				//document.write("fir=" + fir+"<br>");
				var sec=i/10%10;   //sec=(i%100-i%10)/10;
				sec=parseInt(sec);   
				//document.write("sec=" + sec+"<br>");
				var third=i%10;
				third=parseInt(third);
				//document.write("third=" + third+"<br>");
				var num = fir*fir*fir+sec*sec*sec+third*third*third;
				//document.write("i = " +　i + " num = " + num + "<br>");
				if(i==num){
					document.write(i+"<br>");
				}

			}
		</script>
	</body>
</html>